package com.mallsystem.userservice.mapper;

import com.mallsystem.common.bean.User;

import java.util.List;

public interface UserMapper {
    //添加 - 注册
    int insert(User user);
    //根据用户名查询
    User selectByUsernameInt(String username);
    //根据id修改用户
    int update(User user);
    //根据条件查询
    List<User> selectByCondition(User condition);
    //根据id查询用户
    User selectById(Integer id);
}
